﻿using System;
using System.Data;
using System.Web.UI.WebControls;

public partial class manager_temt_TaskTmpSet : System.Web.UI.Page
{
    DBHelper db = new DBHelper();
    public int tid;
    public int type;
    public string ttitle;
    protected void Page_Load(object sender, EventArgs e)
    {
        tid = Convert.ToInt32(Request.QueryString["id"]);
        type = Convert.ToInt32(Request.QueryString["type"]);

        RelId.Value = tid.ToString();
        ttitle = (Request.QueryString["title"]) + "每月固定任务";
        ((Label)Master.FindControl("MESS")).Text = (Request.QueryString["mes"]);
        if (!IsPostBack)
        {
            bindData();
        }
    }
    private void bindData()
    {
        DataTable dt = db.getList("select * from v_dict_dept_position_Task where Bm_Kh=" + tid + " or Ry_Kh=" + tid + " or Bm_Bkh=" + tid + " or Ry_Bkh=" + tid);
        rptDeApply_1.DataSource = dt;
        rptDeApply_1.DataBind();
    }

}